<style>
    .mast{
        color: red;
        font-weight: bold;
        margin-right: 4px;
    }
    .mast::after{
        content: '*';
    }

    #cxselect-example .form-group {
        margin: 10px 0;
    }
    .panel-intro > .panel-heading {
        position: fixed;width: 100%;
        top: 0;
        z-index: 3;
    }
    .fly_tips:before{
        content: "tips：";
    }
    .fly_tips{
        color: #777777;height: 33px;line-height: 33px;
    }
    .fly_tips_error{
        color: #ff6600;
    }
    #p-download_url .thumbnail{margin-bottom: 0;}
    .row_v{
        margin-top: 7px;color: #1688f1;font-weight: bold;
    }
    #extent_text{
        font-size:12px;color:#1688f1;
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">

        <ul class="nav nav-tabs" id="tablist">
            <li role="presentation" class="active"><a href="#test_info">试卷信息</a></li>
            <li role="presentation"><a href="#question_list">题目列表</a></li>
        </ul>
    </div>

    <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div id="test_info" style="height: 0;">&nbsp;</div>
        <div class="panel-body" style="margin-top: 45px;">

            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade active in" id="one">
                    <div class="widget-body no-padding" id="cxselect-example">

                        <!--  试卷信息 start  -->
                        <div class="panel panel-info">
                            <div class="panel-heading">
                                <h3 class="panel-title">试卷信息</h3>
                            </div>
                            <div class="panel-body">
                                <!--  表单信息 start  -->
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="row_v">{$row.title|htmlentities}</div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Course_id')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="row_v">{$row.course_name|default="无"}</div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('考试时间')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="row_v">{:$row.start_time?datetime($row.start_time):''}&nbsp;&nbsp;~&nbsp;&nbsp;{:$row.end_time?datetime($row.start_time):''}</div>
                                    </div>
                                </div>
                                <!--  表单信息 end  -->
                            </div>
                        </div>
                        <!--  试卷信息 end  -->
                        <!--  题目列表 start  -->
                        <div style="" id="question_list" class="alert alert-success-light">
                            <p>
                                说明：题型为选择题、多选题、判定题时，将自动进行评分。如果设置了填空题的答案，也将进行自动评分。问答题不进行评分。<br>
                                排序：后台题目排序为降序 <i class="fa fa-arrow-down" style="color:#f60;"></i>，前台将升序排列 <i class="fa fa-arrow-up" style="color:#f60;"></i>。
                            </p>
                        </div>

                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">题目列表&nbsp;&nbsp;&nbsp;&nbsp;<span id="extent_text"></span></h3>
                            </div>
                            <div class="panel-body">
                                <!--  表单信息 start  -->
                                <div id="toolbar" class="toolbar">
                                    <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>

                                    <a href="classroom/question/add?test_id={:input('ids')}" class="btn btn-success btn-dialog {:$auth->check('classroom/question/add')?'':'hide'}" title="{:__('Add')}" data-area='["95%","95%"]' data-shade="0.5"><i class="fa fa-plus"></i> {:__('新增题目')}</a>

                                    <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('classroom/test/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                                    <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('classroom/test/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>


                                    
                                </div>
                                <div class="question_list" style="margin-top: 10px;">
                                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                                           data-operate-edit="{:$auth->check('classroom/question/edit')}"
                                           data-operate-del="{:$auth->check('classroom/question/del')}"
                                           width="100%">
                                    </table>
                                </div>
                                <!--  表单信息 end  -->
                            </div>
                        </div>
                        <!--  题目列表 end  -->
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <!--<button type="submit" class="btn btn-primary btn-embossed disabled">保存试卷信息</button>-->
            </div>
        </div>
    </form>

</div>